package xyz.akwangl.elasticsearch.pojo.crud;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

@Data
@Document(indexName = "shakespeare")
public class Shakespeare implements Serializable {

    @Id
    @Field(name = "line_id", type = FieldType.Keyword)
    private String lineId;

    @Field(name = "line_number", type = FieldType.Keyword)
    private String lineNumber;

    @Field(name = "play_name", type = FieldType.Keyword)
    private String playName;

    @Field(name = "speaker", type = FieldType.Keyword)
    private String speaker;


    @Field(name = "speech_number", type = FieldType.Keyword)
    private Long speechNumber;

    @Field(name = "text_entry", type = FieldType.Text)
    private String textEntry;


}
